using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class BGCtrl : MonoBehaviour
{
    Transform main;

    void Start()
    {
        main = GameObject.FindGameObjectWithTag("MainCamera").transform;
    }

    private void Update()
    {
        this.transform.position = new Vector3(transform.position.x, main.position.y, transform.position.z);
    }
}
